package com.guchenbo.example.netty4;

import io.netty.channel.nio.NioEventLoopGroup;

/**
 * @Author guchenbo
 * @Date 2018/10/28.
 */
public class NioEventLoopTest {

    public static void main(String[] args) {

        NioEventLoopGroup group = new NioEventLoopGroup(3);
        System.out.println(group.executorCount());
//        for (int i = 0; i < group.executorCount()*2; i++) {
//
//            System.out.println(group.next());
//        }
        for (int i = 0; i < 10; i++) {
            group.execute(new HelloTask());
        }
    }
}
